<template>
	<view>
		<m-panel :data="list"></m-panel>
		<m-button text="退出登陆" @click.native = goLogin()></m-button>
	</view>
</template>

<script>
	import mPanel from '@/components/m-panel/m-panel.vue'
	export default {
		components:{
			mPanel
		},
		data() {
			return {
				list:[
					{
						id:"1",
						title: "账号与安全",
						type: "text"
					},{
						id:"2",
						title: "协议",
						type: "text",
						page: "/pages/about/about"
					},{
						id: "3",
						title:"退出登陆",
						type: "button",
						page: "/pages/login/login"
					}
				]
			}
		},
		methods: {
			goLogin(){
				uni.reLaunch({
				    url: '/pages/login/login'
				});
			}
		}
	}
</script>

<style>

</style>
